package com.typhosoft.jcommon.network;

import com.esotericsoftware.kryo.Kryo;
import com.esotericsoftware.kryonet.EndPoint;
import com.typhosoft.jcommon.bean.CLoginMessage;
import com.typhosoft.jcommon.bean.CPhoto;

/**
 * Created by Mario on 21/03/2014.
 */
public class CNetwork {

    static public final int port = 60000;
    static public final String serverHost = "typho.no-ip.org";

    // This registers objects that are going to be sent over the network.
    static public void register(EndPoint endPoint) {
        Kryo kryo = endPoint.getKryo();
        kryo.register(CLoginMessage.class);
        kryo.register(CPhoto.class);
        kryo.register(byte[].class);
        kryo.register(PhotoSize.class);
    }

    static public class PhotoSize {
        public int photoSize;
    }
}
